<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
<title>账户管理</title>
<link rel="stylesheet" type="text/css" href="../style/style.css" />
<link media="screen" rel="stylesheet" href="../style/colorbox.css" />
<script type="text/javascript" src="/js/show.js"></script>
<script language="javascript" src="/js/public.js"></script>
<script src="/js/jquery-1.4.2.min.js"></script>
<script src="/js/jquery.colorbox.js"></script>
<script>
		$(document).ready(function(){
			//Examples of how to assign the ColorBox event to elements
			$("a[rel='example2']").colorbox({iframe:true,transition:"none", width:"650", height:"240"});
			$("a[rel='example3']").colorbox({iframe:true,transition:"none", width:"650", height:"300"});
			$("a[rel='example4']").colorbox({iframe:true,scrolling:true,transition:"none", width:"730", height:"490"});
		});
	</script>
</head>
<body class="indexbody">
	<#assign a=0>
   	<#assign b=0>
   	<#assign c=0>
   	<#assign d=0>
   	<#list allPower?if_exists as power>
   		<#if power?number == 221>
   			<#assign a=a+1>
   		</#if>
   		<#if power?number == 222>
   			<#assign b=b+1>
   		</#if>
   		<#if power?number == 223>
   			<#assign c=c+1>
   		</#if>
   		<#if power?number == 224>
   			<#assign d=d+1>
   		</#if>
   	</#list>
<div id="Content">
  <div style="width:100%; ">
  <div urlvalue="Oasp2803" functionid="FUNC00004" urlname="公告" recordcount="5" minflg="0" class="DesktopBlock" id="FUNC00004">
  <div id="Block">
          <div id="BlockHead">
            <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
              <tbody>
                <tr valign="center">
                  <td width="5"></td>
                  <td>账户管理</td> 
                  <td width="22"></td>
                </tr>
              </tbody>
            </table>
          </div>
          <form method="post" action="indexLoad.action" id="indexLoad" name="indexLoad">
          <div class="BlockMemo" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
          
             
              <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#f9f9f9">
  <tr>
    <td height="50"><div class="MbBox ">
      <ul class="right">
        <li class="mar-l15 height-30"><select name="orderByName" id="orderByName" onChange="document.indexLoad.submit();" class="background-zi">
          <option  value="" selected>选择排序</option>
          <option value="personnel_id-UP" <#if orderByName?default("")="personnel_id-UP">selected</#if> >人员ID-升↑</option>

            <option value="personnel_id-DOWN" <#if orderByName?default("")="personnel_id-DOWN">selected</#if> >人员ID-降↓</option>
            
            <option value="personnel_sex-UP" <#if orderByName?default("")="personnel_sex-UP">selected</#if> >性别-升↑</option>
			
			<option value="personnel_sex-DOWN" <#if orderByName?default("")="personnel_sex-DOWN">selected</#if>>性别-降↓</option>
			
          </select> </li>
        </ul>
     
      <ul >
        <li class="w120px text-ar" style=" height:30px;line-height:30px;"><select name="paramName" id="paramName"class="background-zi se-po">
          <option value="" selected>-选择条件名称-</option>
    <option value="personnel_id" <#if paramName?default("")=="personnel_id">selected</#if>>人员ID</option>
    
    <option value="personnel_name" <#if paramName?default("")=="personnel_name">selected</#if>>姓名</option>
    
    <option value="personnel_sex" <#if paramName?default("")=="personnel_sex">selected</#if>>性别</option>
    
    <option value="organization_name" <#if paramName?default("")=="organization_name">selected</#if>>所属机构</option>
    
    <option value="department" <#if paramName?default("")=="department">selected</#if>>部门</option>
    
    <option value="personnel_position" <#if paramName?default("")=="personnel_position">selected</#if>>职位</option>
          </select></li>
        <li class="mar-l5 height-30"><input name="paramValue" id="paramValue" value="${paramValue?default('')}" style="height:22px;  background:#CCC;vertical-align:middle" type="text" />
          </li>
        <li class="mar-l5 height-30"><div class="yuding_btn">
          <!-- 搜索按钮  -->
          <span><span class="xp-b-leftSubmit2"><!-- --></span>
            <a id="uw_flight_submit_lnk" class="xp-b-submit2" href="#" onclick="document.indexLoad.submit();">搜索</a> 
            <span class="xp-b-rightSubmit2"><!-- --></span></span>
          </div></li>
          </ul>
		</div>
	  </td>
    </tr>
</table>

           </div>
           <div id="BlockDetail">
          <table border="0" cellpadding="1" cellspacing="1" width="100%" bgcolor="#f9f9f9">
<tbody><tr>
    <td align="center" bgcolor="#EAEAEA" height="30" width="3%">序号</td>
    <td align="center" bgcolor="#EAEAEA" width="8%">姓名</td>
    <td align="center" bgcolor="#EAEAEA" height="30" width="3%">性别</td>
    <td align="center" bgcolor="#EAEAEA" width="8%">职务</td>
    <td align="center" bgcolor="#EAEAEA" width="10%">所属机构</td>
    <td align="center" bgcolor="#EAEAEA" width="10%">登录账号</td>
    <td width="20%" height="30" align="center" bgcolor="#EAEAEA">操作</td>
</tr>
 <#assign i = 0>                                       
<#list personList?if_exists as plist>                                          
    <#assign i=i+1>                                       
<tr>
    <td class="STYLE10" align="center" bgcolor="#FFFFFF" height="30">${i}
    </td>
    <td class="STYLE10" align="center" bgcolor="#FFFFFF" height="25">${plist.personnel_name?default('')}</td>
    <td height="25" align="center" bgcolor="#FFFFFF" class="STYLE10" style="padding-left:5px;">${plist.personnel_sex?default('')}</td>
    
    
    <td class="STYLE10" align="center" bgcolor="#FFFFFF" height="25">${plist.personnel_position?default('')}</td>
    <td class="STYLE10" align="center" bgcolor="#FFFFFF" height="25">${plist.organization_name?default('')}</td>
    <td class="STYLE10" align="center" bgcolor="#FFFFFF" height="25"><font color="green">${plist.account_name?default('')}</font></td>
    <td class="STYLE10" align="center" bgcolor="#FFFFFF" height="25"><table border="0" cellpadding="0" cellspacing="0" width="200">
      <table border="0" cellpadding="0" cellspacing="0" width="100%"><tbody>
      <tr>
        <td align="center" height="20">
	        <#if a==0>
	    		<font color="#777777">分配账号</font>
	    	<#else>
	    		 <a rel="example2" href="accountAllotLoad.action?personnel_id=${plist.personnel_id?default(0)}" >分配账号</a>
	    	</#if>
	         <#if b==0>
	    		<font color="#777777">删除账号</font>
	    	<#else>
	    		 <a href="#" onclick="openDeleteDialog('accountDelete.action?personnel_id=${plist.personnel_id?default(0)}','您确定要删除${plist.personnel_name?default('')}的登录账号吗？')">删除账号</a>
	    	</#if>
         	<#if c==0>
    			<font color="#777777">分配角色</font>
	    	<#else>
	    		<a rel="example3" href="roleAllotLoad.action?personnel_id=${plist.personnel_id?default(0)}">分配角色</a>
	    	</#if>
            <#if d==0>
	    		<font color="#777777">用户授权</font>
	    	<#else>
	    		 <a rel="example4" href="accountEmpowerLoad.action?personnel_id=${plist.personnel_id?default(0)}">用户授权</a>
	    	</#if>
	    		<a rel="example4" href="editPasswordUserload.action?personnel_id=${plist.personnel_id?default(0)}">修改账户密码</a>	
          </td>
        </tr>
        </tbody></table>
    </td>
    </tr>
    </#list>
									  </tbody></table>
                                      <div id="BlockFoot">
              <div class="left"><span class="STYLE10">第<span class="h2-red">${page}</span>页/共<span class="h2-red">${intPageCount}</span>页,总计<span class="h2-red">${intRowCount}</span>条记录</span></div>
												
<div class="right"><span class="STYLE10"> 
<#if page gt 1 > [<a href="indexLoad.action?page=1">首页</a>]<#else> [首页]</#if> 
<#if page gt 1 >[<a href="indexLoad.action?page=${page-1}" >上一页</a>]<#else>[上一页]</#if>
<#if page lt intPageCount >[<a href="indexLoad.action?page=${page+1}" >下一页</a>] <#else>[下一页]</#if>
<#if page lt intPageCount >[<a href="indexLoad.action?page=${intPageCount}">尾页</a>] <#else>[尾页]</#if>
转向<select id="page" name="page" onChange="indexLoad.submit()">
      <#assign p=intPageCount>
      <#if p==0>
      <option value='0' selected>1</option>
      <#else>
      <#list 1..p as j>
      <option value="${j}"<#if page==j>selected</#if>>${j}</option>

      </#list>
      </#if></select> 页 </span></div>
            </div>
           </div> 
           </form>
      </div>
        </div>
      </div>
  </div>
</body>
</html>

